/**
 * 
 */
package dms.service.imp;

import java.util.Date;

import dms.model.Building;
import dms.model.Campus;
import dms.model.Dormitory;
import dms.model.form.LowElectricity;
import dms.model.util.PageIterator;
import dms.repository.LowElectricityRepository;
import dms.service.LowElectricityQueryService;

/**
 * @author 李健
 *
 */
public class LowElectricityQueryServiceImpl implements
		LowElectricityQueryService {
	private LowElectricityRepository lowElectricityRepository;

	@Override
	public PageIterator<LowElectricity> findByBuilding(int start, int count,
			Building building, Date fromDate, Date toDate) {
		return this.lowElectricityRepository.findByBuilding(start, count, building, fromDate, toDate);
	}

	@Override
	public PageIterator<LowElectricity> findByCampus(int start, int count,
			Campus campus, Date fromDate, Date toDate) {
		return this.lowElectricityRepository.findByCampus(start, count, campus, fromDate, toDate);
	}

	@Override
	public PageIterator<LowElectricity> findByDormitory(int start, int count,
			Dormitory dormitory, Date fromDate, Date toDate) {
		return this.lowElectricityRepository.findByDormitory(start, count, dormitory, fromDate, toDate);
	}
	
	public LowElectricityRepository getLowElectricityRepository() {
		return lowElectricityRepository;
	}

	public void setLowElectricityRepository(
			LowElectricityRepository lowElectricityRepository) {
		this.lowElectricityRepository = lowElectricityRepository;
	}
	
}
